package com.example.info;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.Date;

//上传图片时带的消息
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SampleInfo {

    //工位编号
    private String machineID;

    //上传时间 如2022-01-01 00:00:00
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date postTime;

    //图片缺陷类型
    private String defectName;

    //创建时间
    private LocalDateTime createTime;

    //修改时间
    private LocalDateTime updateTime;

}
